$(document).ready(function(){
	
	$('#editReportLink').click(function () {
		$('#reportfield').attr('readonly',false);
	});
	$('#editReportImage').click(function () {
		$('#reportfield').attr('readonly',false);
	});
	$('#submitLink').click(function () {
		//alert("提交成功");
		$('#reportfield').attr('readonly',true);
		messagePopup('提交成功！');
		return false;
	});
	$('#submitImage').click(function () {
		//alert("提交成功");
		$('#reportfield').attr('readonly',true);
		messagePopup('提交成功！');
		return false;
	});
	
});

function messagePopup(value){
	var strHTML="<div id='messagep' class='faqbg'></div>";
	strHTML+="<div id='submessagep' class='faqdiv' style='display:none'>";
	strHTML+="<h2>提示框<a href='#' class='close'>关闭</a></h2>";
	strHTML+="<div class='form'>这里是提示信息！！</div></div>";
	$("body").append(strHTML);
	var str = "<table  border='0' cellspacing='0' cellpadding='0'><tr><td align='center' style='font-size:20'>"+value+"</td></tr>";
	str+="</table>";

		$(".form").html(str);
		$("#messagep").css({display:"block",height:$(document).height()});
		var yscroll =document.documentElement.scrollTop;
		$("#submessagep").css("top","100px");
		$("#submessagep").css("display","block");
		document.documentElement.scrollTop=0;
	$(".close").click(function(){
		$("#messagep").css("display","none");
		$("#submessagep").css("display","none");
	});
}